﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Swin_e_mon_Forms
{
    public class TestOneWorldLoader: IWorldLoader
    {
        public Location Load()
        {
            Location aNewLoc = new Location(new string[] { "Tacvi" });
            Item bag = new Item(new string[] { "Bag" }, true);
            Item pen = new Item(new string[] { "Pen" }, false);
            Item pencil = new Item(new string[] { "Pencil" }, false);
            Item paper = new Item(new string[] { "Paper" }, false);

            pen.Title = "Pen of Writing";
            bag.Title = "Bottomless Bag";
            paper.Title = "White Paper";
            pencil.Title = "Broken Pencil";
            aNewLoc.Title = "Tacvi, Seat of the Slayer";

            pen.Description = "This pen has blue ink";
            bag.Description = "There is no end to how much this bag can hold";
            paper.Description = "A blank piece of paper";
            pencil.Description = "This pencil is broken";
            aNewLoc.Description = "This Location is Badass";

            aNewLoc.Inventory.AddItem(bag);
            aNewLoc.Inventory.AddItem(pencil);
            bag.Inventory.AddItem(paper);
            bag.Inventory.AddItem(pen);

            Location aSecondNewLoc = new Location(new string[] { "A Second Place" });
            Path p1 = new Path(new string[] { "West" }, aSecondNewLoc);
            Path p2 = new Path(new string[] { "East" }, aNewLoc);
            aNewLoc.paths.Add(p1);
            aSecondNewLoc.paths.Add(p2);

            p1.Description = "You walk through the door way!";
            p2.Description = "You walk back through the door way!";

            Player p = new Player();
            p.InLocation = aNewLoc;
            

            return aNewLoc;
        }
    }

}
